package net.xumf.support.model.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class RegisterDTO {

    // 邮箱
    @NotEmpty(message = "邮箱不可为空")
    private String email;
    // 登录名
    @Size(max = 25, message = "超过账号的最大长度")
    @NotEmpty(message = "账号不可为空")
    private String loginName;
    // 密码
    @Size(max = 255, message = "超过密码的最大长度")
    @NotEmpty(message = "密码不可为空")
    private String password;
}
